home *** CD-ROM | disk | FTP | other *** search
- #include "RDriver.h"
- #include "FileUtils.h"
-
- void iFileCreate( Ptr AlienFileName, long)
- {
- }
-
- FILE* iFileOpen( Ptr name)
- {
- return fopen( name, "rb");
- }
-
- long iGetEOF( FILE* iFileRefI)
- {
- long curEOF;
-
- fseek( iFileRefI, 0, SEEK_END);
- curEOF = ftell( iFileRefI);
- fseek( iFileRefI, 0, 0);
-
- return curEOF;
- }
-
- OSErr iRead( long size, Ptr dest, FILE* iFileRefI)
- {
- fread( dest, size, 1, iFileRefI);
-
- return noErr;
- }
-
- OSErr iSeekCur( long size, FILE* iFileRefI)
- {
- return fseek( iFileRefI , size, SEEK_CUR);
- }
-
- OSErr iWrite( long size, Ptr dest, FILE* iFileRefI)
- {
- fwrite( dest, size, 1, iFileRefI);
-
- return noErr;
- }
-
- void iClose( FILE* iFileRefI)
- {
- fclose( iFileRefI);
- }
-
- void MOT32( void *msg_buf)
- {
- unsigned char *buf = (unsigned char*) msg_buf;
- unsigned long out;
-
- out = ( (unsigned long) buf[0] << 24L) | ( (unsigned long) buf[1] << 16L) | ( (unsigned long) buf[ 2] << 8L) | ( (unsigned long) buf[3]);
- *((unsigned long*) msg_buf) = out;
- }
-
- void MOT16( void *msg_buf)
- {
- unsigned char *buf = (unsigned char*) msg_buf;
- unsigned short out;
-
- out = ((unsigned short) buf[0] << 8L) | ( (unsigned short) buf[1]);
- *((unsigned short*) msg_buf) = out;
- }
-
- void INT32( void *msg_buf)
- {
- }
-
- void INT16( void *msg_buf)
- {
- }
-
-